interface LengthObj{
    length:number
}

const logLen = <T extends LengthObj>(obj:T) => {
    console.log(obj.length);
}
logLen('你好')
// logLen(666)
logLen([1,2,4,5,6,2,3])



export { }
